import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

const app = createApp(App)

// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'

app.use(ElementPlus, {
  locale: zhCn,
})

// 引入百度地图Vue插件
import Vue3BaiduMapGL from 'vue3-baidu-map-gl'
app.use(Vue3BaiduMapGL, {
  ak: 'IVrxhGKViMttmN3Mr0GntQHZUCwS30W4',
  plugins: ['TrackAnimation']
})


app.use(createPinia())
app.use(router)

app.mount('#app')
